// 验证手机号
export const isMobile = {
	getMessage: field => "手机号格式不正确",
	validate: value => /^0\d{2,3}-\d{7,8}$/.test(value) || /^((13|14|15|17|18)[0-9]{1}\d{8})$/.test(value)
}
// 验证手机号
export const isIdCard = {
	getMessage: field => "身份证号不正确",
	validate: value => /(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/.test(value)
}
